package lujieni.starter.config;

import lujieni.starter.bean.SimpleBean;
import lujieni.starter.mark.LujieniStarterMark;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(LujieniStarterMark.class)
public class LujieniStarterConfiguration {

    @Bean
    public SimpleBean generateSimpleBean(){
        SimpleBean simpleBean = new SimpleBean();
        return simpleBean;
    }

}
